Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FTR] Use new ES client instead of legacyEs service #88720

Merged
merged 3 commits into from
Jan 20, 2021

Conversation

afharo
Copy link
Member

@afharo afharo commented Jan 19, 2021

Summary

This PR migrates all the functional tests owned by @elastic/kibana-core from legacyEs to the service es. At the same time, it migrates them from .js to .ts to help with types in the future.

Resolves #72442.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@afharo afharo added release_note:skip Skip the PR/issue when compiling release notes v7.12.0 labels Jan 19, 2021
@afharo
Copy link
Member Author

afharo commented Jan 20, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

merge conflict between base and head

@afharo afharo force-pushed the functional-tests/migrateToNewEsClient branch from 07a3a36 to 2a45520 Compare January 20, 2021 08:26
@afharo afharo marked this pull request as ready for review January 20, 2021 10:21
@afharo afharo requested a review from a team January 20, 2021 10:48
@@ -256,6 +258,7 @@ export default function ({ getService }) {
)
.expect(400)
.then((resp) => {
// eslint-disable-next-line no-console
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need this console.log? For what purpose? @rudolf as one of the logs added in #44143

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log line I added was just for debugging so it shouldn't have been commited.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove them then. Thanks for confirming!

/*
* Create a single-level array with strings for all the paths to values in the
* source object, up to 3 deep. Going deeper than 3 causes a bit too much churn
* in the tests.
*/
function flatKeys(source) {
const recursivelyFlatKeys = (obj, path = [], depth = 0) => {
function flatKeys(source: any) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Record or object instead of any?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Changed!

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@afharo afharo merged commit ee5f560 into elastic:master Jan 20, 2021
@afharo afharo deleted the functional-tests/migrateToNewEsClient branch January 20, 2021 15:30
afharo added a commit to afharo/kibana that referenced this pull request Jan 20, 2021
jportner added a commit to jportner/kibana that referenced this pull request Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes v7.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adapt platform functional tests to the new ES client
4 participants